#include "MIPDLL.h"
#include"QMIPWidgetApplication.h"
QMIPWidgetApplication* MIP;
int InitMIP(unsigned char* ProjectPath)
{
    QString strFileName;
	strFileName = "./log/" + QString("%1.txt").arg(QDateTime::currentDateTime().toString("yyyyMMddhhmmss"));
    MIP = new QMIPWidgetApplication(strFileName);
    char* str = (char*) ProjectPath;
    MIP->LoadProjectPath(QLatin1String(str));
    return 0;
}

int ShowMIP()
{
    if (MIP != nullptr)
    {
        MIP->show();
    }
    return 0;
}

int NewMIP()
{
    QString strFileName;
	strFileName = "./log/1.txt";
    MIP = new QMIPWidgetApplication(strFileName);
    return 0;
}

